package moutum.com.dagger2android.activity;

import android.os.Bundle;
import android.widget.TextView;

import javax.inject.Inject;

import frame.m.com.mylibrary.http.HttpUtil;
import frame.m.com.mylibrary.http.RetrofitUtil;
import moutum.com.dagger2android.R;
import moutum.com.dagger2android.di.Api;

public class MainActivity extends BaseActivity {
    private TextView tv;
    @Inject
    HttpUtil httpUtil;
    @Inject
    Api api;
    @Inject
    RetrofitUtil retrofitUtil;
    @Inject
    String name;



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        tv=findViewById(R.id.textView);
        tv.setText(httpUtil+"\n\r"+api+"\n\r"+retrofitUtil+"\n\r"+name+"\n\r");
    }
}
